package hibernateTest;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.jca.support.LocalConnectionFactoryBean;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate4.support.HibernateDaoSupport;

import com.blog.entity.User;
import com.blog.util.HibernateUtil;
import com.mysql.jdbc.Connection;

public class A extends HibernateDaoSupport{
	private LocalConnectionFactoryBean sf;
	 private HibernateTemplate ht;
	public void getConnet(User user){
		 ht.save(user);
	}
	
	
	public LocalConnectionFactoryBean getSf() {
		return sf;
	}
	public void setSf(LocalConnectionFactoryBean sf) {
		this.sf = sf;
	}
	
	
	
}
